set(SOURCES "")
set(INCLUDE_DIRS "." "ui/custom" "ui/generated")
file(GLOB_RECURSE MAIN_SOURCES
    *.c
)
list(APPEND SOURCES ${MAIN_SOURCES})

idf_component_register(SRCS ${SOURCES}
                        INCLUDE_DIRS ${INCLUDE_DIRS})

spiffs_create_partition_image(html ../html FLASH_IN_PROJECT)
spiffs_create_partition_image(audio ../audio FLASH_IN_PROJECT)